home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / linux-bo / dless-li / root.no / etc / rc.d / rc.0 next >
Text File  |  1995-04-26  |  611b  |  22 lines

  1. #! /bin/sh
  2. #
  3. # brc        This file is executed by init(8) when the system is being
  4. #        shutdown (i.e. set to run at level 0).  It usually takes
  5. #        care of un-mounting al unneeded file systems.
  6. #
  7. # Version:    @(#)/etc/brc        2.01    02/17/93
  8. #
  9. # Authors:    Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
  10. #        Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
  11. #
  12.  
  13.   PATH=/sbin:/bin:/usr/sbin:/usr/bin
  14.   echo Unmounting file systems.....
  15.   sync
  16.   if [ "`mount | grep ' on / ' | grep umsdos`" = "" ]; then
  17.    umount -a
  18.   else
  19.    umount -a 2> /dev/null # Let's not put ugly errors on the screen with UMSDOS.
  20.   fi
  21.   echo Done.
  22.